﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

namespace HNAlbum.Component.Pikachoose
{
    public class PikachooseItem : HtmlGenericControl
    {
        private string _imageUrl = string.Empty;

        public string ImageUrl
        {
            get { return _imageUrl; }
            set { _imageUrl = value; }
        }
        private string _imageCaption = string.Empty;

        public string ImageCaption
        {
            get { return _imageCaption; }
            set { _imageCaption = value; }
        }

        public PikachooseItem(string imageURL, string imageCaption)
        {
            //Init Pikachoose list item
            this.TagName = "li";
            _imageUrl = imageURL;
            _imageCaption = imageCaption;

            //Create image and add to the list
            Image img = new Image();
            img.ImageUrl = imageURL;
            this.Controls.Add(img);
        }
    }
}